package com.project.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;

/**
 * 日志实体类
 */
public class LogBean {
    /**日志编号*/
    private int id;
    /**日期*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate createDate = LocalDate.now();
    /**内容*/
    private String info;

    public LogBean() {
    }

    public LogBean(String info) {
        this.info = info;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "id=" + id +
                ", createDate=" + createDate +
                ", info='" + info + '\'' +
                '}';
    }
}
